home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 for Intel / NeXTSTEP 3.2 for Intel.iso / NextLibrary / Documentation / Sybase / DBLIB / Section2 / dbcurrow.nr < prev    next >
Encoding:
Text File  |  1993-04-22  |  964 b   |  42 lines

  1. .Na "DBCURROW" 
  2. .Aa
  3. .Fu
  4. Return the number of the row currently being read.
  5. .Ih "row, returning the number of the current"
  6. .Sy
  7. .Sf "DBINT DBCURROW(dbproc)"
  8. .Sp "DBPROCESS" "*dbproc"
  9. .Co
  10. .Bl
  11. This macro returns the number of the row currently being read.
  12. Rows are counted from
  13. the first row returned from \*S, whose number is 1, and \f2not\f1 from the top of the row buffer,
  14. if any.
  15. The row number changes every time 
  16. .I "\%dbnextrow()"
  17. or
  18. .I "dbgetrow()"
  19. returns SUCCEED.
  20. .Bl
  21. The row number is reset to 0 by each new call to \f2dbresults()\f1.
  22. .Bz
  23. .Pa
  24. .Pi dbproc
  25. A pointer to the DBPROCESS structure that provides the connection
  26. for a particular front-end/\*S process.  It contains all the
  27. information that \*L uses to manage communications and data between the
  28. front end and \*S.
  29. .in -.375i
  30. .Re
  31. .br
  32. The number of the current row.
  33. This routine returns 0 if no rows have been processed yet.
  34. .Sa
  35. dbclrbuf,
  36. DBFIRSTROW,
  37. dbgetrow,
  38. DBLASTROW,
  39. dbnextrow,
  40. dbsetopt,
  41. options
  42.